package JLB_Chapter_05;
// StringSplit3
public class code_05_21 {
    public static void main(String[] args) {
        String str = "192.168.0.1";
        String[] firstArray = str.split("\\.");
        String[] secondArray = str.split("\\.",2);
        for(String row : firstArray) {
            System.out.println("[" + row + "]" + " ");
        }
        System.out.println();
        for(String row : secondArray) {
            System.out.println("[" + row + "]" + " ");
        }
    }
}
